<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/float/fk_reimtask.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/system/float/fk_reimtask.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'fk_reimtask_id',
                footer: "Foots",
                cnName: '流程任务',
                name: 'float/fk_reimtask',
                url: "/fk_reimtask/",
                sortName: "createtime"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'fk_reimtask_id',title:'流程任务表',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'path_router',title:'访问路由',type:'string',width:220,hidden:true,align:'left'},
                       {field:'menuname',title:'菜单名称',type:'string',width:220,hidden:true,align:'left'},
                       {field:'createtime',title:'创建时间',type:'datetime',width:180,align:'left',sort:true},
                       {field:'to_username',title:'接受人',type:'string',width:220,hidden:true,align:'left'},
                       {field:'to_userrealname',title:'接受人名称',type:'string',width:120,align:'left'},
                       {field:'ishandled',title:'是否处理过，1处理过',type:'int',width:110,hidden:true,align:'left'},
                       {field:'reyijian',title:'处理意见',type:'string',width:120,align:'left'},
                       {field:'remark',title:'意见',type:'string',width:200,align:'left'},
                       {field:'handledtime',title:'处理时间',type:'datetime',width:180,align:'left',sort:true},
                       {field:'reimid',title:'需要处理业务数据',type:'guid',width:110,hidden:true,align:'left'},
                       {field:'stepid',title:'步骤号',type:'int',width:110,hidden:true,align:'left'},
                       {field:'stepname',title:'步骤名称',type:'string',width:120,align:'left'},
                       {field:'reimtable',title:'业务表(区分其他流程)',type:'string',width:220,hidden:true,align:'left'},
                       {field:'task_type',title:'任务类型',type:'string',width:220,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
